package mi.payment.bean.db;

import java.io.Serializable;
import java.util.HashMap;

import mi.payment.db.dao.PayDetail;
import mi.payment.db.dao.PaySettlement;
import mi.payment.utils.iso8583.MsgField;

/**
 * 交易类
 */
public class TradeData implements Serializable {

    private HashMap<String, MsgField> send8583;     // 发送包的域结构
    private HashMap<String, MsgField> receive8583;  // 接收包的域结构

    private byte[] sendBag;     // 发送包
    private byte[] receiveBag;  // 接收包
    private CardInfo cardInfo;  // 交易卡片信息
    private CardInfo inCardInfo;// 转入卡信息

    public PayDetail payDetail;             // 交易细节
    private PaySettlement paySettlement;    // 结算信息及相关数据

    private int bagSequence;                // 交互计数
    private boolean quickTrade;             // 是否欢迎界面发起的刷插卡
    private boolean manualLogout;           // 是否手工签退
    private int operationRequest;           // 处理要求
    private boolean QPassProve;             // 是否闪卡重刷流程

    private String dataTag4F;   // 非接卡获取到的AID数据
    private String dataTag9F6C; // 非接卡获取到的 9F6C卡片终端协商结果要求Pin

    public HashMap<String, MsgField> getSend8583() {
        return send8583;
    }

    public void setSend8583(HashMap<String, MsgField> send8583) {
        this.send8583 = send8583;
    }

    public HashMap<String, MsgField> getReceive8583() {
        return receive8583;
    }

    public void setReceive8583(HashMap<String, MsgField> receive8583) {
        this.receive8583 = receive8583;
    }

    public byte[] getSendBag() {
        return sendBag;
    }

    public void setSendBag(byte[] sendBag) {
        this.sendBag = sendBag;
    }

    public byte[] getReceiveBag() {
        return receiveBag;
    }

    public void setReceiveBag(byte[] receiveBag) {
        this.receiveBag = receiveBag;
    }

    public CardInfo getCardInfo() {
        return cardInfo;
    }

    public void setCardInfo(CardInfo cardInfo) {
        this.cardInfo = cardInfo;
    }

    public CardInfo getInCardInfo() {
        return inCardInfo;
    }

    public void setInCardInfo(CardInfo inCardInfo) {
        this.inCardInfo = inCardInfo;
    }

    public PaySettlement getPaySettlement() {
        return paySettlement;
    }

    public void setPaySettlement(PaySettlement paySettlement) {
        this.paySettlement = paySettlement;
    }

    public PayDetail getPayDetail() {
        return payDetail;
    }

    public void setPayDetail(PayDetail payDetail) {
        this.payDetail = payDetail;
    }

    public int getBagSequence() {
        return bagSequence;
    }

    public void setBagSequence(int bagSequence) {
        this.bagSequence = bagSequence;
    }

    public boolean isQuickTrade() {
        return quickTrade;
    }

    public void setQuickTrade(boolean quickTrade) {
        this.quickTrade = quickTrade;
    }

    public boolean isManualLogout() {
        return manualLogout;
    }

    public void setManualLogout(boolean manualLogout) {
        this.manualLogout = manualLogout;
    }

    public int getOperationRequest() {
        return operationRequest;
    }

    public void setOperationRequest(int operationRequest) {
        this.operationRequest = operationRequest;
    }

    public boolean isQPassProve() {
        return QPassProve;
    }

    public void setQPassProve(boolean QPassProve) {
        this.QPassProve = QPassProve;
    }

    public String getDataTag4F() {
        return dataTag4F;
    }

    public void setDataTag4F(String dataTag4F) {
        this.dataTag4F = dataTag4F;
    }

    public String getDataTag9F6C() {
        return dataTag9F6C;
    }

    public void setDataTag9F6C(String dataTag9F6C) {
        this.dataTag9F6C = dataTag9F6C;
    }


}
